package com.saicmotor.hk2.mapper;

import com.saicmotor.hk2.model.Role;
import com.saicmotor.hk2.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface RoleMapper {
    List<Role> getAll();

    void insertRoleInfo(String name);

    void deleteByName(String name);

    void updateName(String newName,String oldName);

    void createRoleTable(@Param(value = "tableName") String tableName);

}

